home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / dolmorph / src / zimstore.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-07  |  9.4 KB  |  382 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    idImageStoreWin[2] ;
  9. extern int    ImageStoreWinFunc() ;
  10. extern int    idImageStoreTitleDBtn[2] ;
  11. extern int    idImageStoreSBarV[2] ;
  12. extern int    ImageStoreSBarFunc() ;
  13. extern int    idImageStoreTitleMsg[2] ;
  14. extern int    idImageStoreEditMenuDBtn[2] ;
  15. extern int    idImageStoreEditDBtn[2][3] ;
  16. extern int    ImageStoreEditDBtnFunc() ;
  17. extern int    idImageStoreEditMsg[2][3] ;
  18.  
  19. #define ALIGN    4
  20. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  21.  
  22. /*    MMI_init 用データ    */
  23.  
  24. /*    ヘッダ    */
  25.  
  26. MMIINIT    initDataZIMSTORE = { "MmiInit",  22, 0 } ;
  27.  
  28. /* idImageStoreWin[0] */
  29.  
  30. static MMIPACKET d001 = {    &idImageStoreWin[0],
  31.                             NULL,
  32.                             &MJ_WINDOWL40,
  33.                             OFFSET(WINDOWL40),
  34.                             MS_NONE
  35.                         } ;
  36. static WINDOWL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
  37.                              298,  20, 639, 249, 8, 6, 8,
  38.                             MS_UFRAMEL40 | MS_FRAMEL40,
  39.                             NULL,   0,   0,
  40.                                1,  17,   0,   0,
  41.                              128,  96, 640, 480,
  42.                             ImageStoreWinFunc,
  43.                             "ウィンドウ",
  44.                         } ;
  45.  
  46. /* idImageStoreTitleDBtn[0] */
  47.  
  48. static MMIPACKET d002 = {    &idImageStoreTitleDBtn[0],
  49.                             &idImageStoreWin[0],
  50.                             &MJ_DBUTTONL40,
  51.                             OFFSET(DBUTTONL40),
  52.                             MS_NONE
  53.                         } ;
  54. static DBUTTONL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  55.                              299,  21, 638,  36, 8, 6, 8,
  56.                             MS_UFRAMEL40 | MS_FRAMEL40,
  57.                             0,
  58.                             0x0000
  59.                         } ;
  60.  
  61. /* idImageStoreSBarV[0] */
  62.  
  63. static MMIPACKET d003 = {    &idImageStoreSBarV[0],
  64.                             &idImageStoreWin[0],
  65.                             &MJ_SCRLL40,
  66.                             OFFSET(SCRLL40),
  67.                             MS_NONE
  68.                         } ;
  69. static SCRLL40    d003d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  70.                              624,  36, 639, 234, 8, 6, 6,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             ImageStoreSBarFunc,
  73.                                0,   0, 255,  16,  16,
  74.                              263, 264
  75.                         } ;
  76.  
  77. /* idImageStoreTitleMsg[0] */
  78.  
  79. static MMIPACKET d004 = {    &idImageStoreTitleMsg[0],
  80.                             &idImageStoreWin[0],
  81.                             &MJ_MSGL40,
  82.                             OFFSET(MSGL40),
  83.                             MS_NONE
  84.                         } ;
  85. static MSGL40    d004d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  86.                              315,  22, 388,  35, 8, 6, 8,
  87.                             MS_NONEL40,
  88.                             "静止画倉庫",
  89.                                1,  12,  12,
  90.                             MS_NONEL40,
  91.                                0,   0
  92.                         } ;
  93.  
  94. /* idImageStoreEditMenuDBtn[0] */
  95.  
  96. static MMIPACKET d005 = {    &idImageStoreEditMenuDBtn[0],
  97.                             &idImageStoreWin[0],
  98.                             &MJ_DBUTTONL40,
  99.                             OFFSET(DBUTTONL40),
  100.                             MS_NONE
  101.                         } ;
  102. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  103.                              299, 231, 623, 248, 8, 4, 8,
  104.                             MS_NONEL40,
  105.                             0,
  106.                             0x0000
  107.                         } ;
  108.  
  109. /* idImageStoreEditDBtn[0][0] */
  110.  
  111. static MMIPACKET d006 = {    &idImageStoreEditDBtn[0][0],
  112.                             &idImageStoreWin[0],
  113.                             &MJ_DBUTTONL40,
  114.                             OFFSET(DBUTTONL40),
  115.                             MS_NONE
  116.                         } ;
  117. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  118.                              306, 232, 347, 247, 8, 6, 8,
  119.                             MS_UFRAMEL40 | MS_FRAMEL40,
  120.                             ImageStoreEditDBtnFunc,
  121.                             0x0000
  122.                         } ;
  123.  
  124. /* idImageStoreEditDBtn[0][1] */
  125.  
  126. static MMIPACKET d007 = {    &idImageStoreEditDBtn[0][1],
  127.                             &idImageStoreWin[0],
  128.                             &MJ_DBUTTONL40,
  129.                             OFFSET(DBUTTONL40),
  130.                             MS_NONE
  131.                         } ;
  132. static DBUTTONL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  133.                              351, 232, 392, 247, 8, 6, 8,
  134.                             MS_UFRAMEL40 | MS_FRAMEL40,
  135.                             ImageStoreEditDBtnFunc,
  136.                             0x0000
  137.                         } ;
  138.  
  139. /* idImageStoreEditDBtn[0][2] */
  140.  
  141. static MMIPACKET d008 = {    &idImageStoreEditDBtn[0][2],
  142.                             &idImageStoreWin[0],
  143.                             &MJ_DBUTTONL40,
  144.                             OFFSET(DBUTTONL40),
  145.                             MS_NONE
  146.                         } ;
  147. static DBUTTONL40    d008d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  148.                              396, 232, 437, 247, 8, 6, 8,
  149.                             MS_UFRAMEL40 | MS_FRAMEL40,
  150.                             ImageStoreEditDBtnFunc,
  151.                             0x0000
  152.                         } ;
  153.  
  154. /* idImageStoreEditMsg[0][0] */
  155.  
  156. static MMIPACKET d009 = {    &idImageStoreEditMsg[0][0],
  157.                             &idImageStoreWin[0],
  158.                             &MJ_MSGL40,
  159.                             OFFSET(MSGL40),
  160.                             MS_NONE
  161.                         } ;
  162. static MSGL40    d009d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  163.                              309, 234, 344, 245, 8, 6, 8,
  164.                             MS_NONEL40,
  165.                             "cut",
  166.                                1,  12,  12,
  167.                             MS_NONEL40,
  168.                                0,   0
  169.                         } ;
  170.  
  171. /* idImageStoreEditMsg[0][1] */
  172.  
  173. static MMIPACKET d010 = {    &idImageStoreEditMsg[0][1],
  174.                             &idImageStoreWin[0],
  175.                             &MJ_MSGL40,
  176.                             OFFSET(MSGL40),
  177.                             MS_NONE
  178.                         } ;
  179. static MSGL40    d010d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  180.                              355, 234, 388, 245, 8, 6, 8,
  181.                             MS_NONEL40,
  182.                             "copy",
  183.                                1,  12,  12,
  184.                             MS_NONEL40,
  185.                                0,   0
  186.                         } ;
  187.  
  188. /* idImageStoreEditMsg[0][2] */
  189.  
  190. static MMIPACKET d011 = {    &idImageStoreEditMsg[0][2],
  191.                             &idImageStoreWin[0],
  192.                             &MJ_MSGL40,
  193.                             OFFSET(MSGL40),
  194.                             MS_NONE
  195.                         } ;
  196. static MSGL40    d011d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  197.                              398, 234, 435, 246, 8, 6, 8,
  198.                             MS_NONEL40,
  199.                             "paste",
  200.                                1,  12,  12,
  201.                             MS_NONEL40,
  202.                                0,   0
  203.                         } ;
  204.  
  205. /* idImageStoreWin[1] */
  206.  
  207. static MMIPACKET d012 = {    &idImageStoreWin[1],
  208.                             NULL,
  209.                             &MJ_WINDOWL40,
  210.                             OFFSET(WINDOWL40),
  211.                             MS_NONE
  212.                         } ;
  213. static WINDOWL40    d012d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
  214.                              298, 250, 639, 479, 8, 6, 8,
  215.                             MS_UFRAMEL40 | MS_FRAMEL40,
  216.                             NULL,   0,   0,
  217.                                1,  17,   0,   0,
  218.                              128,  96, 640, 480,
  219.                             ImageStoreWinFunc,
  220.                             "ウィンドウ",
  221.                         } ;
  222.  
  223. /* idImageStoreTitleDBtn[1] */
  224.  
  225. static MMIPACKET d013 = {    &idImageStoreTitleDBtn[1],
  226.                             &idImageStoreWin[1],
  227.                             &MJ_DBUTTONL40,
  228.                             OFFSET(DBUTTONL40),
  229.                             MS_NONE
  230.                         } ;
  231. static DBUTTONL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  232.                              299, 251, 638, 266, 8, 6, 8,
  233.                             MS_UFRAMEL40 | MS_FRAMEL40,
  234.                             0,
  235.                             0x0000
  236.                         } ;
  237.  
  238. /* idImageStoreSBarV[1] */
  239.  
  240. static MMIPACKET d014 = {    &idImageStoreSBarV[1],
  241.                             &idImageStoreWin[1],
  242.                             &MJ_SCRLL40,
  243.                             OFFSET(SCRLL40),
  244.                             MS_NONE
  245.                         } ;
  246. static SCRLL40    d014d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  247.                              624, 266, 639, 464, 8, 6, 6,
  248.                             MS_PANELL40 | MS_FRAMEL40,
  249.                             ImageStoreSBarFunc,
  250.                                0,   0, 255,  16,  16,
  251.                              263, 264
  252.                         } ;
  253.  
  254. /* idImageStoreTitleMsg[1] */
  255.  
  256. static MMIPACKET d015 = {    &idImageStoreTitleMsg[1],
  257.                             &idImageStoreWin[1],
  258.                             &MJ_MSGL40,
  259.                             OFFSET(MSGL40),
  260.                             MS_NONE
  261.                         } ;
  262. static MSGL40    d015d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  263.                              315, 252, 388, 265, 8, 6, 8,
  264.                             MS_NONEL40,
  265.                             "動画倉庫",
  266.                                1,  12,  12,
  267.                             MS_NONEL40,
  268.                                0,   0
  269.                         } ;
  270.  
  271. /* idImageStoreEditMenuDBtn[1] */
  272.  
  273. static MMIPACKET d016 = {    &idImageStoreEditMenuDBtn[1],
  274.                             &idImageStoreWin[1],
  275.                             &MJ_DBUTTONL40,
  276.                             OFFSET(DBUTTONL40),
  277.                             MS_NONE
  278.                         } ;
  279. static DBUTTONL40    d016d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  280.                              299, 461, 623, 478, 8, 4, 8,
  281.                             MS_NONEL40,
  282.                             0,
  283.                             0x0000
  284.                         } ;
  285.  
  286. /* idImageStoreEditDBtn[1][0] */
  287.  
  288. static MMIPACKET d017 = {    &idImageStoreEditDBtn[1][0],
  289.                             &idImageStoreWin[1],
  290.                             &MJ_DBUTTONL40,
  291.                             OFFSET(DBUTTONL40),
  292.                             MS_NONE
  293.                         } ;
  294. static DBUTTONL40    d017d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  295.                              306, 462, 347, 477, 8, 6, 8,
  296.                             MS_UFRAMEL40 | MS_FRAMEL40,
  297.                             ImageStoreEditDBtnFunc,
  298.                             0x0000
  299.                         } ;
  300.  
  301. /* idImageStoreEditDBtn[1][1] */
  302.  
  303. static MMIPACKET d018 = {    &idImageStoreEditDBtn[1][1],
  304.                             &idImageStoreWin[1],
  305.                             &MJ_DBUTTONL40,
  306.                             OFFSET(DBUTTONL40),
  307.                             MS_NONE
  308.                         } ;
  309. static DBUTTONL40    d018d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  310.                              351, 462, 392, 477, 8, 6, 8,
  311.                             MS_UFRAMEL40 | MS_FRAMEL40,
  312.                             ImageStoreEditDBtnFunc,
  313.                             0x0000
  314.                         } ;
  315.  
  316. /* idImageStoreEditDBtn[1][2] */
  317.  
  318. static MMIPACKET d019 = {    &idImageStoreEditDBtn[1][2],
  319.                             &idImageStoreWin[1],
  320.                             &MJ_DBUTTONL40,
  321.                             OFFSET(DBUTTONL40),
  322.                             MS_NONE
  323.                         } ;
  324. static DBUTTONL40    d019d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  325.                              396, 462, 437, 477, 8, 6, 8,
  326.                             MS_UFRAMEL40 | MS_FRAMEL40,
  327.                             ImageStoreEditDBtnFunc,
  328.                             0x0000
  329.                         } ;
  330.  
  331. /* idImageStoreEditMsg[1][0] */
  332.  
  333. static MMIPACKET d020 = {    &idImageStoreEditMsg[1][0],
  334.                             &idImageStoreWin[1],
  335.                             &MJ_MSGL40,
  336.                             OFFSET(MSGL40),
  337.                             MS_NONE
  338.                         } ;
  339. static MSGL40    d020d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  340.                              309, 464, 344, 475, 8, 6, 8,
  341.                             MS_NONEL40,
  342.                             "cut",
  343.                                1,  12,  12,
  344.                             MS_NONEL40,
  345.                                0,   0
  346.                         } ;
  347.  
  348. /* idImageStoreEditMsg[1][1] */
  349.  
  350. static MMIPACKET d021 = {    &idImageStoreEditMsg[1][1],
  351.                             &idImageStoreWin[1],
  352.                             &MJ_MSGL40,
  353.                             OFFSET(MSGL40),
  354.                             MS_NONE
  355.                         } ;
  356. static MSGL40    d021d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  357.                              354, 464, 389, 475, 8, 6, 8,
  358.                             MS_NONEL40,
  359.                             "copy",
  360.                                1,  12,  12,
  361.                             MS_NONEL40,
  362.                                0,   0
  363.                         } ;
  364.  
  365. /* idImageStoreEditMsg[1][2] */
  366.  
  367. static MMIPACKET d022 = {    &idImageStoreEditMsg[1][2],
  368.                             &idImageStoreWin[1],
  369.                             &MJ_MSGL40,
  370.                             0,
  371.                             MS_NONE
  372.                         } ;
  373. static MSGL40    d022d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  374.                              399, 464, 434, 475, 8, 6, 8,
  375.                             MS_NONEL40,
  376.                             "paste",
  377.                                1,  12,  12,
  378.                             MS_NONEL40,
  379.                                0,   0
  380.                         } ;
  381.  
  382.